s=0
i=1
while i<11:
    s+=i
    if s>20:
        print(i)
        break
    i+=1
print('=================')
num=0
j=0
while j<3:
    name=input('请输入名字：')
    pwa=input('请输入密码：')
    if name=='lyl' and pwa=='666666':
        print('登录成功！')
        break
    else:
        print('登录失败，您还有',2-j,'次机会！')
    j+=1
else: # while...else...
    print('三次都输入错误！')